/**
 * 
 */
package org.kknd.thetvdblib;

import junit.framework.Assert;

import org.junit.Test;

/**
 * @author Christian
 * 
 */
public class TestTheTVDB {

    @Test(expected = IllegalStateException.class)
    public void testTheTVDBwithoutApiKey() {
        TheTVDB.getInstance();
    }

    @Test
    public void testTheTVDBwithApiKey() {
        TheTVDB db = TheTVDB.getInstance("asd");
        Assert.assertNotNull(db);

        db = TheTVDB.getInstance();
        Assert.assertNotNull(db);
    }
}
